package com.xk857.simpleeffect.dialog;

import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;

import com.xk857.simpleeffect.R;

public class LoadingDialog extends Dialog {

    private TextView loadingText;

    public LoadingDialog(Context context) {
        super(context);
        setContentView(R.layout.loading_dialog);
        loadingText = (TextView) findViewById(R.id.loading_text);
        setCanceledOnTouchOutside(false);
    }

    public void setLoadingText(String text) {
        loadingText.setText(text);
    }

}